﻿@model Model.SystemSetting.UserInfo

@{
    ViewBag.Title = "EditUser";
}

<h2>UpdateUser</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Update UserInfo</legend>       
        @Html.HiddenFor(model => model.UserId) 
        @Html.HiddenFor(model => model.CreateTime)

        <table>
            <tr>
                <td width="80">@Html.LabelFor(model => model.LoginName)</td>
                <td width="100">@Html.EditorFor(model => model.LoginName)</td>
                <td width="100">@Html.ValidationMessageFor(model => model.LoginName)</td>

                <td width="80">@Html.LabelFor(model => model.UserPwd)</td>
                <td width="100">@Html.EditorFor(model => model.UserPwd)</td>
                <td width="100">@Html.ValidationMessageFor(model => model.UserPwd)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.UserIDNo)</td>
                <td>@Html.EditorFor(model => model.UserIDNo)</td>
                <td>@Html.ValidationMessageFor(model => model.UserIDNo)</td>

                <td>@Html.LabelFor(model => model.UserName)</td>
                <td>@Html.EditorFor(model => model.UserName)</td>
                <td>@Html.ValidationMessageFor(model => model.UserName)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.UserMobile)</td>
                <td>@Html.EditorFor(model => model.UserMobile)</td>
                <td>@Html.ValidationMessageFor(model => model.UserMobile)</td>

                <td>@Html.LabelFor(model => model.UserTel)</td>
                <td>@Html.EditorFor(model => model.UserTel)</td>
                <td>@Html.ValidationMessageFor(model => model.UserTel)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.UserEmail)</td>
                <td>@Html.EditorFor(model => model.UserEmail)</td>
                <td>@Html.ValidationMessageFor(model => model.UserEmail)</td>

                <td>@Html.LabelFor(model => model.UserRole)</td>
                <td>@Html.EditorFor(model => model.UserRole)</td>
                <td>@Html.ValidationMessageFor(model => model.UserRole)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.UserDept)</td>
                <td>@Html.EditorFor(model => model.UserDept)</td>
                <td>@Html.ValidationMessageFor(model => model.UserDept)</td>

                <td>@Html.LabelFor(model => model.Forbidden)</td>
                <td>@Html.EditorFor(model => model.Forbidden)</td>
                <td>@Html.ValidationMessageFor(model => model.Forbidden)</td>
            </tr>

        </table>

        <p>
            <input type="submit" value="Update" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
